﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class update : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void sumbit_Click(object sender, EventArgs e)
    {

      

        if(func.upcod(Session["usr"].ToString(),txtqr.Text.Trim()))
        {
            Session["usr"] = null;
            Response.Write("<script>alert('修改成功，账号已经失效，请重新登录');location.href='login.aspx';</script>");
        }
        else
        {
            Response.Write("<script>alert('修改失败，请稍后再试')</script>");

        }
    }
}